//
//
//
#ifndef __BIT_CODE_DEF_H
#define __BIT_CODE_DEF_H

#include "bit.h"

#if __cplusplus
extern "C"
{
#endif

static struct bits_code BC_DYNA_VOL_DIFFS[] = 
{
	{0x00,	1,	'h',	6,		0},			// 0	+6Bit		= (6Bit)*100
	{0x02,	2,	'h',	8,		32},		// 10	+8Bit		= (8Bit+32)*100
	{0x06,	3,	'h',	12,		160},		// 110	+12Bit		= (12Bit+128+32)*100
	{0x1C,	5,	'I',	12,		0},			// 11100+12Bit		= 12Bit
	{0x1D,	5,	'I',	16,		2048},		// 11101+16Bit		= 16Bit+2048
	{0x1E,	5,	'I',	24,		34816},		// 11110+24Bit		= 24Bit+32768+2048
	{0x1F,	5,	'O',	32,		0},			// 11111+32Bit		= 32Bit Org
};

static struct bits_code BC_DYNA_PRICE_INS[] = 
{
	{0x0E,	4,	'C',	0,	999999},		// 1110				= 0
	{0x00,	1,	'C',	0,		1},			// 0				= 1
	{0x02,	2,	'D',	4,		2},			// 10	+4Bit		= 4Bit+2
	{0x06,	3,	'D',	16,		18},		// 110  +16Bit		= 16Bit+16+2
	{0x0F,	4,	'O',	32,		0},			// 1111 +32Bit		= 32Bit Org
};

static struct bits_code BC_DYNA_AMNT_DIFF[] = 
{
	{0x00,	2,	'I',	4,		0},			// 00	+4Bit		= 4Bit
	{0x01,	2,	'I',	8,		8},			// 01	+8Bit		= 8Bit+8
	{0x04,	3,	'I',	12,		136},		// 100	+12Bit		= 12Bit+128+8
	{0x05,	3,	'I',	16,		2184},		// 101	+16Bit		= 16Bit+2048+128+8
	{0x06,	3,	'I',	24,		34952},		// 110	+24Bit		= 24Bit+32768+2048+128+8
	{0x07,	3,	'O',	32,		0},			// 111	+32Bit		= 32Bit Org
};

static struct bits_code BC_DYNA_TIMEDIFF[] = 
{
	{0x00,	1,	'C',	0,		3},			// 0				= 3s
	{0x06,	3,	'C',	0,		6},			// 110				= 6s
	{0x02,	2,	'D',	4,		0},			// 10	+4Bit		= 4Bit
	{0x07,	3,	'O',	18,		0},			// 111	+18Bit		= 18Bit Org
};

static struct bits_code BC_DYNA_PRICE_MMP[] = 
{
	{0x00,	2,	'C',	0,	999999},		// 00				= Psell1 = Pnew
	{0x01,	2,	'C',	0,		0},			// 01				= Pbuy1 = Pnew
	{0x02,	2,	'I',	4,		0},			// 10	+4Bit		= 4Bit
	{0x06,	3,	'I',	8,		8},			// 110  +8Bit		= 8Bit+8
	{0x07,	3,	'O',	32,		0},			// 111	+32Bit		= 32Bit Org
};

static struct bits_code BC_DYNA_PRICE_GAP[] = 
{
	{0x00,	1,	'C',	0,		2},			// 0				= 2
	{0x02,	2,	'D',	3,		3},			// 10	+3Bit		= 3Bit+3
	{0x06,	3,	'D',	8,		11},		// 110  +8Bit		= 8Bit+8+3
	{0x07,	3,	'O',	32,		0},			// 111	+32Bit		= 32Bit Org
};

static struct bits_code BC_DYNA_TRADENUM[] = 
{
	{0x02,	2,	'D',	8,		0},			// 10	+8Bit		= 8Bit
	{0x00,	1,	'D',	12,		256},		// 0	+12Bit		= 12Bit+256
	{0x06,	3,	'D',	16,		4352},		// 110	+16Bit		= 16Bit+4096+256
	{0x0E,	4,	'D',	24,		69888},		// 1110	+24Bit		= 24Bit+65536+4096+256
	{0x0F,	4,	'O',	32,		0},			// 1111	+32Bit		= 32Bit Org
};

static struct bits_code BC_DYNA_QH_VOL_DIFF[] = {
	{ 0x06, 3, 'D', 12, 0 }, // 110 +12Bit = 12Bit
	{ 0x02, 2, 'D', 16, 4096 }, // 10 +16Bit = 16Bit+4096
	{ 0x00, 1, 'D', 24, 69632 }, // 0 +24Bit = 24Bit+65536+4096
	{ 0x07, 3, 'O', 32, 0 }, // 111 +32Bit = 32Bit Org
};

static struct bits_code BC_DYNA_QH_VOL_DIFFS[] = {
	{ 0x00, 1, 'I', 12, 0 }, // 0 +12Bit = 12Bit
	{ 0x02, 2, 'I', 16, 2048 }, // 10 +16Bit = 16Bit+2048
	{ 0x06, 3, 'I', 24, 34816 }, // 110 +24Bit =
	// 24Bit+32768+2048
	{ 0x07, 3, 'O', 32, 0 }, // 111 +32Bit = 32Bit Org
};

static struct bits_code BC_DYNA_VOL_DIFF[] = 
{
	{0x02,	2,	'H',	4,		0},			// 10	+4Bit		= (4Bit)*100
	{0x00,	1,	'H',	8,		16},		// 0	+8Bit		= (8Bit+16)*100
	{0x06,	3,	'H',	12,		272},		// 110	+12Bit		= (12Bit+256+16)*100
	{0x1C,	5,	'D',	12,		0},			// 11100+12Bit		= 12Bit
	{0x1D,	5,	'D',	16,		4096},		// 11101+16Bit		= 16Bit+4096
	{0x1E,	5,	'D',	24,		69632},		// 11110+24Bit		= 24Bit+65536+4096
	{0x1F,	5,	'O',	32,		0},			// 11111+32Bit		= 32Bit Org
};

static struct bits_code BC_DYNA_VOL[] = 
{
	{0x06,	3,	'D',	12,		0},			// 110	+12Bit		= 12Bit
	{0x02,	2,	'D',	16,		4096},		// 10	+16Bit		= 16Bit+4096
	{0x00,	1,	'D',	24,		69632},		// 0	+24Bit		= 24Bit+65536+4096
	{0x07,	3,	'O',	32,		0},			// 111  +32Bit		= 32Bit Org
};

static struct bits_code BC_DYNA_ZLZC[] = 
{
	{0x00,	1,	'D',	5,		0},			// 0	+5Bit		= 5Bit
	{0x01,	1,	'O',	8,		0},			// 1    +8Bit		= 8Bit Org
};

static struct bits_code BC_DYNA_QH_OI_DIFF[] = {
	{ 0x00, 1, 'I', 12, 0 }, // 0 +12Bit = 12Bit
	{ 0x02, 2, 'I', 16, 2048 }, // 10 +16Bit = 16Bit+2048
	{ 0x06, 3, 'I', 24, 34816 }, // 110 +24Bit =
	// 24Bit+32768+2048
	{ 0x07, 3, 'O', 32, 0 }, // 111 +32Bit = 32Bit Org
};

static struct bits_code BC_DYNA_AMNT[] = 
{
	{0x00,	2,	'I',	16,		0},			// 00	+16Bit		= 16Bit
	{0x01,	2,	'I',	24,		32768},		// 01	+24Bit		= 24Bit+32768
	{0x02,	2,	'I',	28,		8421376},	// 10	+28Bit		= 28Bit+8388608+32768
	{0x03,	2,	'O',	32,		0},			// 11	+32Bit		= 32Bit Org
};

static struct bits_code BC_MIN_NUMBER[] = 
{
	{0x00,	1,	'C',	0,		0},					//0				= 0
	{0x02,	2,	'D',	4,		1},					//10	+4Bit	= 4Bit+1
	{0x06,	3,	'D',	8,		17},				//110	+8Bit	= 8Bit+16+1
	{0x07,	3,	'O',	16,		0},					//111	+16Bit	= 16Bit
};

static struct bits_code BC_DYNA_PRICE_DIFF[] = 
{
	{0x00,	1,	'D',	4,		0},			// 0	+4Bit		= 4Bit
	{0x02,	2,	'D',	6,		16},		// 10	+6Bit		= 6Bit+16
	{0x06,	3,	'D',	8,		80},		// 110	+8Bit		= 8Bit+64+16
	{0x0E,	4,	'D',	16,		336},		// 1110+16Bit		= 16Bit+256+64+16
	{0x0F,	4,	'O',	32,		0},			// 1111+32Bit		= 32Bit Org
};

static struct bits_code BC_BARGAIN_QH_VOL[] = {
	{ 0x00, 1, 'D', 12, 0 }, // 0 +12Bit = 12Bit
	{ 0x02, 2, 'D', 16, 4096 }, // 10 +16Bit = 16Bit+4096
	{ 0x06, 3, 'D', 24, 69632 }, // 110 +24Bit =
	// 24Bit+65536+4096
	{ 0x07, 3, 'O', 32, 0 }, // 111 +32Bit = 32Bit Org
};

static struct bits_code BC_BARGAIN_QH_OI[] = {
	{ 0x00, 1, 'I', 12, 0 }, // 0 +12Bit = 12Bit
	{ 0x02, 2, 'I', 16, 2048 }, // 10 +16Bit = 16Bit+2048
	{ 0x06, 3, 'I', 24, 34816 }, // 110 +24Bit =
	// 24Bit+32768+2048
	{ 0x07, 3, 'O', 32, 0 }, // 111 +32Bit = 32Bit Org
};

static struct bits_code BC_DYNA_PRICE_DIFFS[] = 
{
	{0x00,	1,	'I',	4,		0},			// 0	+4Bit		= 4Bit
	{0x02,	2,	'I',	6,		8},			// 10	+6Bit		= 6Bit+8
	{0x06,	3,	'I',	8,		40},		// 110	+8Bit		= 8Bit+32+8
	{0x0E,	4,	'I',	16,		168},		// 1110	+16Bit		= 16Bit+128+32+8
	{0x0F,	4,	'O',	32,		0},			// 1111 +32Bit		= 32Bit Org
};

static struct bits_code BC_MIN_TIME[] = 
{
	{0x00,	1,	'C',	0,		1},					//0				= 1时间单位
	{0x02,	2,	'D',	5,		2},					//10	+5Bit	= 5Bit+2时间单位
	{0x06,	3,	'D',	8,		34},				//110	+8Bit	= 8Bit+32+2时间单位
	{0x07,	3,	'O',	16,		0},					//111	+16Bit	= 16Bit时间单位
};

static struct bits_code BC_MINDAY_PRICE[] = 
{
	{0x02,	2,	'D',	8,		0},			//10	+8Bit		= 8Bit
	{0x00,	1,	'D',   16,		256},		//0		+16Bit		= 16Bit+256
	{0x06,	3,	'D',   24,		65792},		//110	+24Bit		= 24Bit+65536+256
	{0x07,	3,	'O',   32,		0},			//111	+32Bit		= 32Bit Org
};

static struct bits_code BC_MINDAY_PRICE_DIFFS[] = 
{
	{0x00,	1,	'I',	4,		0},			// 0	+4Bit		= 4Bit
	{0x02,	2,	'I',	6,		8},			// 10	+6Bit		= 6Bit+8
	{0x06,	3,	'I',	8,		40},		// 110	+8Bit		= 8Bit+32+8
	{0x0E,	4,	'I',	16,		168},		// 1110	+16Bit		= 16Bit+128+32+8
	{0x0F,	4,	'O',	32,		0},			// 1111 +32Bit		= 32Bit Org
};

static struct bits_code BC_MINDAY_PRICE_DIFF[] = 
{
	{0x00,	1,	'D',	4,		0},			// 0	+4Bit		= 4Bit
	{0x02,	2,	'D',	6,		16},		// 10	+6Bit		= 6Bit+16
	{0x06,	3,	'D',	8,		80},		// 110	+8Bit		= 8Bit+64+16
	{0x0E,	4,	'D',	16,		336},		// 1110+16Bit		= 16Bit+256+64+16
	{0x0F,	4,	'O',	32,		0},			// 1111+32Bit		= 32Bit Org
};

static struct bits_code BC_MIN_VOL[] = 
{
	{0x00,	1,	'D',	12,		0},			// 0	+12Bit		= 12Bit
	{0x02,	2,	'D',	16,		4096},		// 10	+16Bit		= 16Bit+4096
	{0x06,	3,	'D',	24,		69632},		// 110	+24Bit		= 24Bit+65536+4096
	{0x07,	3,	'O',	32,		0},			// 111  +32Bit		= 32Bit Org
};

static struct bits_code BC_MINDAY_AMNT_DIFF[] = 
{ 
	{0x00,	2,	'I',	4,	0},		// 00	+4Bit		= 4Bit
	{0x01,	2,	'I',	8,	8},		// 01	+8Bit		= 8Bit+8
	{0x04,	3,'I',	12, 136},	// 100	+12Bit		= 12Bit+128+8
	{0x05,	3,	'I',	16, 2184},	// 101	+16Bit		= 16Bit+2048+128+8
	{0x06,	3,	'I',	24, 34952},	// 110	+24Bit		= 24Bit+32768+2048+128+8
	{0x07,	3,	'O',	32,	0},		// 111	+32Bit		= 32Bit Org
};

static struct bits_code BC_MINDAY_AMNT[] = 
{
	{0x00,	2,	'I',	16,		0},			// 00	+16Bit		= 16Bit
	{0x01,	2,	'I',	24,		32768},		// 01	+24Bit		= 24Bit+32768
	{0x02,	2,	'I',	28,		8421376},	// 10	+28Bit		= 28Bit+8388608+32768
	{0x03,	2,	'O',	32,		0},			// 11	+32Bit		= 32Bit Org
};

/*static struct bits_code BC_MIN_TRADENUM_OLD[] = 
{
	{0x00,	1,	'D',	8,		0},			// 0	+8Bit		= 8Bit
	{0x02,	2,	'D',	12,		256},		// 10	+12Bit		= 12Bit+256
	{0x06,	3,	'D',	16,		4352},		// 110	+16Bit		= 16Bit+4096+256
	{0x07,	3,	'O',	24,		0},			// 111	+24Bit		= 24Bit Org
};

static struct bits_code BC_MIN_TRADENUM[] = 
{
	{0x00,	1,	'D',	8,		0},			// 0	+8Bit		= 8Bit
	{0x02,	2,	'D',	12,		256},		// 10	+12Bit		= 12Bit+256
	{0x06,	3,	'D',	16,		4352},		// 110	+16Bit		= 16Bit+4096+256
	{0x0E,	4,	'D',	24,		69888},		// 1110	+24Bit		= 24Bit+65536+4096+256
	{0x0F,	4,	'O',	32,		0},			// 1111	+32Bit		= 32Bit Org
};
*/
static struct bits_code BC_MINDAY_STRONG[] = 
{
	{0x00,	2,	'I',	8,		0},			// 00	+8Bit		= 8Bit
	{0x01,	2,	'I',	11,		128},		// 01	+11Bit		= 11Bit+128
	{0x02,	2,	'I',	13,		1152},		// 10	+13Bit		= 13Bit+1024+128
	{0x03,	2,	'O',	32,		0},			// 11	+32Bit		= 32Bit Org
};

static struct bits_code BC_MINDAY_STRONG_DIFF[] = 
{
	{0x00,	1,	'I',	3,		0},			// 0	+3Bit		= 3Bit
	{0x02,	2,	'I',	6,		4},			// 10	+6Bit		= 6Bit+4
	{0x06,	3,	'I',	10,		36},		// 110	+10Bit		= 10Bit+32+4
	{0x0E,	4,	'I',	14,		548},		// 1110	+14Bit		= 14Bit+512+32+4
	{0x0F,	4,	'O',	32,		0},			// 1111	+32Bit		= 32Bit Org
};
/*
static struct bits_code BC_MINDAY_RISEFALL[] = 
{
	{0x00,	1,	'D',	10,		0},			// 0	+10Bit		= 10Bit
	{0x02,	2,	'D',	12,		1024},		// 10	+12Bit		= 12Bit+1024
	{0x06,	3,	'O',	16,		0},			// 110	+16Bit		= 16Bit Org
};
*/
static struct bits_code BC_DAY_NUMBER[] = 
{
	{0x00,	1,	'C',	0,		1},					//0				= 1
	{0x02,	2,	'D',	7,		2},					//10	+7Bit	= 7Bit+2
	{0x06,	3,	'D',	12,		130},				//110	+12Bit	= 12Bit+128+2
	{0x0E,	4,	'D',	16,		4226},				//1110	+16Bit	= 16Bit+4096+128+2
	{0x0F,	4,	'O',	32,		0},					//1111	+32Bit	= 32Bit Org
};

static struct bits_code BC_DAY_TIME[] = 
{
	{0x00,	1,	'C',	0,		1},					//0				= 1天
	{0x02,	2,	'C',	0,		3},					//10			= 3天
	{0x0C,	4,	'C',	0,		2},					//1100			= 2天
	{0x0D,	4,	'D',	4,		4},					//1101	+4Bit	= 4Bit+4天
	{0x0E,	4,	'D',	8,		20},				//1110	+8Bit	= 8Bit+20天
	{0x0F,	4,	'O',	16,		0},					//1111	+16Bit	= 16Bit天
};

static struct bits_code BC_DAY_TIME_MIND[] = 
{
	{0x00,	1,	'C',	0,		0},					//0				= 0天
	{0x02,	2,	'C',	0,		1},					//10			= 1天
	{0x06,	3,	'C',	0,		3},					//110			= 3天
	{0x1C,	5,	'D',	4,		0},					//11100	+4Bit	= 4Bit天
	{0x1D,	5,	'D',	8,		16},				//11101	+8Bit	= 8Bit+16天
	{0x1E,	5,	'O',	16,		0},					//11110	+16Bit	= 16Bit天
};

static struct bits_code BC_DAY_TIME_MINM[] = 
{
	{0x00,	1,	'D',	5,		0},					//0		+5Bit	= 5Bit时间单位
	{0x02,	2,	'D',	8,		32},				//10	+8Bit	= 8Bit+32时间单位
	{0x03,	2,	'O',	12,		0},					//11	+12Bit	= 12Bit时间单位
};

static struct bits_code BC_DAY_VOL[] = 
{
	{0x0F,	4,	'C',	0,		0},			// 1111				= 0
	{0x0E,	4,	'D',	12,		0},			// 1110	+12Bit		= 12Bit
	{0x02,	2,	'D',	16,		4096},		// 10	+16Bit		= 16Bit+4096
	{0x00,	1,	'D',	24,		69632},		// 0	+24Bit		= 24Bit+65536+4096
	{0x06,	3,	'O',	32,		0},			// 110  +32Bit		= 32Bit Org
};
/*
static struct bits_code BC_DAY_TRADENUM[] = 
{
	{0x06,	3,	'D',	8,		0},			// 110	+8Bit		= 8Bit
	{0x02,	2,	'D',	12,		256},		// 10	+12Bit		= 12Bit+256
	{0x00,	1,	'D',	16,		4352},		// 0	+16Bit		= 16Bit+4096+256
	{0x0E,	4,	'D',	24,		69888},		// 1110	+24Bit		= 24Bit+65536+4096+256
	{0x0F,	4,	'O',	32,		0},			// 1111	+32Bit		= 32Bit Org
};
*/
// MACD - DIF, DEA
static struct bits_code BC_EXP_MACD[] = 
{
	{0x00,	2,	'I',	12,		0},			// 00	+12Bit		= 12Bit
	{0x01,	2,	'I',	16,		2048},		// 01	+16Bit		= 16Bit+2048
	{0x02,	2,	'I',	20,		34816},		// 10	+20Bit		= 20Bit+32768+2048
	{0x03,	2,	'O',	32,		0},			// 11	+32Bit		= 32Bit Org
};

// KDJ - K, D; RSI; WR
static struct bits_code BC_EXP_KDJ[] = 
{
	{0x00,	1,	'D',	17,		0},			// 0	+17Bit		= 17Bit
	{0x01,	1,	'O',	32,		0},			// 1	+32Bit		= 32Bit Org
};

static struct bits_code BC_EXP_KDJ_DIFF[] = 
{
	{0x00,	1,	'I',	13,		0},			// 0	+13Bit		= 13Bit
	{0x02,	2,	'I',	16,		4096},		// 10	+16Bit		= 16Bit+4096
	{0x03,	2,	'O',	32,		0},			// 11	+32Bit		= 32Bit Org
};

static struct bits_code BC_AMT_DIFF[] = 
{
	{0x00,	1,	'I',	3,		0},			// 0	+3Bit		= 3Bit
	{0x02,	2,	'I',	6,		4},			// 10	+6Bit		= 6Bit+4
	{0x06,	3,	'I',	10,		36},		// 110	+10Bit		= 10Bit+32+4
	{0x0E,	4,	'I',	14,		548},		// 1110	+14Bit		= 14Bit+512+32+4
	{0x0F,	4,	'O',	32,		0},			// 1111	+32Bit		= 32Bit Org
};

//资金流变
static struct bits_code BC_AMT[] = 
{
	{0x00,	2,	'I',	8,		0},			// 00	+8Bit		= 8Bit
	{0x01,	2,	'I',	11,		128},		// 01	+11Bit		= 11Bit+128
	{0x02,	2,	'I',	13,		1152},		// 10	+13Bit		= 13Bit+1024+128
	{0x03,	2,	'O',	32,		0},			// 11	+32Bit		= 32Bit Org
};

// VR 
static struct bits_code BC_EXP_VR[] = 
{
	{0x00,	1,	'D',	20,		0},			// 0	+20Bit		= 20Bit
	{0x01,	1,	'O',	32,		0},			// 1	+32Bit		= 32Bit Org
};

static struct bits_code BC_EXP_VR_DIFF[] = 
{
	{0x00,	1,	'I',	14,		0},			// 0	+14Bit		= 14Bit
	{0x02,	2,	'I',	17,		8192},		// 10	+17Bit		= 17Bit+8192
	{0x03,	2,	'O',	32,		0},			// 11	+32Bit		= 32Bit Org
};

//////////////////////////////////////////////////////////////////////

static struct bits_code BC_TRADE_NUMBER[] = 
{
	{0x00,	1,	'C',	0,		1},					//0				= 1
	{0x02,	2,	'D',	7,		2},					//10	+7Bit	= 7Bit+2
	{0x06,	3,	'D',	12,		130},				//110	+12Bit	= 12Bit+128+2
	{0x0E,	4,	'D',	16,		4226},				//1110	+16Bit	= 16Bit+4096+128+2
	{0x0F,	4,	'O',	32,		0},					//1111	+32Bit	= 32Bit Org
};

static struct bits_code BC_BARGAIN_TIMEDIFF[] = 
{
	{0x00,	1,	'C',	0,		3},			// 0				= 3s
	{0x06,	3,	'C',	0,		6},			// 110				= 6s
	{0x02,	2,	'D',	4,		0},			// 10	+4Bit		= 4Bit
	{0x0E,	4,	'D',	8,		16},		// 1110	+8Bit		= 8Bit+16
	{0x0F,	4,	'O',	18,		0},			// 1111	+18Bit		= 18Bit Org
};

static struct bits_code BC_TRADE_PRICE[] = 
{
	{0x02,	2,	'D',	8,		0},			//10	+8Bit		= 8Bit
	{0x00,	1,	'D',   16,		256},		//0		+16Bit		= 16Bit+256
	{0x06,	3,	'D',   24,		65792},		//110	+24Bit		= 24Bit+65536+256
	{0x07,	3,	'O',   32,		0},			//111	+32Bit		= 32Bit Org
};

static struct bits_code BC_TRADE_PRICE_DIFFS[] = 
{
	{0x00,	1,	'C',	0,		0},			// 0				= 0
	{0x02,	2,	'I',	2,		0},			// 10	+2Bit		= 2Bit
	{0x06,	3,	'I',	4,		2},			// 110	+4Bit		= 4Bit+2
	{0x0E,	4,	'I',	8,		10},		// 1110	+8Bit		= 8Bit+8+2
	{0x1E,	5,	'I',	16,		138},		// 11110+16Bit		= 16Bit+128+8+2
	{0x1F,	5,	'O',	32,		0},			// 11111+32Bit		= 32Bit Org
};

static struct bits_code BC_BARGAIN_VOL[] = 
{
	{0x00,	1,	'H',	4,		0},			// 0	+4Bit		= (4Bit)*100
	{0x02,	2,	'H',	8,		16},		// 10	+8Bit		= (8Bit+16)*100
	{0x0C,	4,	'H',	12,		272},		// 1100	+12Bit		= (12Bit+256+16)*100
	{0x0D,	4,	'D',	12,		0},			// 1101+12Bit		= 12Bit
	{0x0E,	4,	'D',	16,		4096},		// 1110+16Bit		= 16Bit+4096
	{0x1E,	5,	'D',	24,		69632},		// 11110+24Bit		= 24Bit+65536+4096
	{0x1F,	5,	'O',	32,		0},			// 11111+32Bit		= 32Bit Org
};
/*
static struct bits_code BC_TRADE_TRADENUM[] = 
{
	{0x06,	3,	'D',	8,		0},			// 110	+8Bit		= 8Bit
	{0x02,	2,	'D',	12,		256},		// 10	+12Bit		= 12Bit+256
	{0x00,	1,	'D',	16,		4352},		// 0	+16Bit		= 16Bit+4096+256
	{0x0E,	4,	'D',	20,		69888},		// 1110	+20Bit		= 20Bit+65536+4096+256
	{0x1E,	5,	'D',	24,		1118464},	// 11110+24Bit		= 24Bit+1048576+65536+4096+256
	{0x1F,	5,	'O',	32,		0},			// 11111+32Bit		= 32Bit Org
};
*/
static struct bits_code BC_BARGAIN_TRADENUM_DIFF[] = 
{
	{0x1E,	5,	'C',	0,		0},			// 11110			= 0
	{0x00,	2,	'C',	0,		1},			// 00				= 1
	{0x01,	2,	'C',	0,		2},			// 01				= 2
	{0x02,	2,	'D',	4,		3},			// 10	+4Bit		= 4Bit+3
	{0x06,	3,	'D',	6,		19},		// 110	+6Bit		= 6Bit+16+3
	{0x0E,	4,	'D',	8,		83},		// 1110	+8Bit		= 8Bit+64+16+3
	{0x3E,	6,	'D',	14,		339},		// 111110+8Bit		= 14Bit+256+64+16+3
	{0x3F,	6,	'O',	32,		0},			// 111111+32Bit		= 32Bit Org
};

// 量比
static struct bits_code BC_GRID_LB[] = 
{
	{0x00,	1,	'D',	8,		0},			// 0	+8Bit	  	= 8Bit
	{0x02,	2,	'D',	11,		256},		// 10	+11Bit	  = 11Bit+256
	{0x06,	3,	'D',	14,		2304},		// 110+14Bit    = 14Bit+2048+256
	{0x07,	3,	'O',	32,		0},			// 111+32Bit		= 32Bit Org
};

// 换手率
static struct bits_code BC_GRID_HSL[] = 
{
	{0x00,	1,	'D',	8,		0},			// 0	+8Bit	    = 8Bit
	{0x02,	2,	'D',	12,		256},		// 10 +12Bit    = 12Bit+256
	{0x03,	2,	'O',	32,		0},			// 11 +32Bit		= 32Bit Org
};

// 震幅
static struct bits_code BC_GRID_ZF[] = 
{
	{0x00,	1,	'D',	9,		0},			// 0	+9Bit	    = 9Bit
	{0x02,	2,	'D',	11,		512},		// 10 +11Bit    = 11Bit+512
	{0x06,	3,	'D',	16,		2560},		// 110+16Bit    = 16Bit+2048+512
	{0x07,	3,	'O',	32,		0},			// 111+32Bit		= 32Bit Org
};

#if __cplusplus
}
#endif

#endif
